package com.cherish.pattern.adapter.model;

/**
 * @Classname ResultMsg
 * @Date 2019/4/7 22:46
 * @Author admin
 * @Description TODO
 */
public class ResultMsg {

    public final static int SUCCESS_CODE = 0;
    public final static String SUCCESS_MSG = "success";

    public final static int ERROR_CODE = 1;
    public final static String ERROR_MSG = "账号或密码错误";

    private int code;
    private String msg;
    private Object data;

    public ResultMsg(int code, String msg, Object data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
